<?php

namespace Database\Factories;

use App\Models\Admin;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Commission>
 */
class CommissionFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {

        return [
            'admin_id' => Admin::inRandomOrder()->first()->id,
            'commission_top_rate' => fake()->randomFloat(2, 0, 100),
            'commission_sup_rate' => fake()->randomFloat(2, 0, 100),

        ];
    }
}
